package org.example.infrastructure.persistent.repository;

import org.example.domain.canal.repository.ICanalRepository;
import org.example.infrastructure.persistent.redis.IRedisService;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;


@Repository
public class CanalRepository implements ICanalRepository {


    @Resource
    private IRedisService redisService;
    @Override
    public void deleteRedis(String cacheKey) {
        redisService.remove(cacheKey);
    }
}
